﻿using System;

namespace Bilibili.Model.Resource
{
    public sealed class VideoList
	{
		public int Comment { get; set; }
		public int Play { get; set; }
		public string Pic { get; set; }
		public string Cover
		{
			get
			{
				if (!Pic.StartsWith("http"))
					return "https:" + Pic;
				return Pic;
			}
		}
		public string Description { get; set; }
		public string Title { get; set; }
		public string Video_review { get; set; }
		public string Mid { get; set; }
		public string Aid { get; set; }
		public string Bvid { get; set; }
		public long Created { get; set; }
		public string Length { get; set; }
		public string CreatedTime
		{
			get
			{
				DateTime dtStart = new DateTime(1970, 1, 1);
				long lTime = long.Parse(Created + "0000000");
				TimeSpan toNow = new TimeSpan(lTime);
				return dtStart.Add(toNow).ToString();
			}
		}
	}
}